home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-11-10 | 1.4 KB | 58 lines | [TEXT/GEOL] |
- Item forwarded by A33 to A34
-
- Item 2948190 5-Nov-89 16:00
-
- From: ALLSTAR All Star Computer, L Goldman,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- cc: MACAPP.TEST MacApp SQA Team
-
- Sub: ICellSelectCommand Failures
-
- Curtis and Geoff:
-
- I think a failure handler _is_ required by this method. In applying the MacApp
- initialization convention, if MakeNewRgn failed, the object should free itself.
-
- Check this out:
-
- PROCEDURE TCellSelectCommand.ICellSelectCommand(itsView: TGridView;
- theShiftKey, theCmdKey: BOOLEAN);
-
- VAR {ƒƒƒ Start - Suggested by C. Faith}
- fi : FailInfo;
-
- PROCEDURE HdlFailure(error: INTEGER; message: LONGINT);
- BEGIN
- Free;
- END; {ƒƒƒ Finish}
-
- BEGIN
- fPrevSelection := NIL; {ƒƒƒ}
- fThisSelection := NIL; {ƒƒƒ}
-
- ICommand(0, NIL, itsView, itsView.GetScroller(FALSE));
- fCanUndo := FALSE;
- fCausesChange := FALSE;
- fViewConstrain := FALSE;
-
- fShiftKey := theShiftKey;
- fCmdKey := theCmdKey;
- fGridView := itsView;
- fPrevCell.h := - 1;
-
- CatchFailures(fi, HdlFailure); {ƒƒƒ}
- fPrevSelection := MakeNewRgn;
- CopyRgn(fGridView.fSelections, fPrevSelection);
- fThisSelection := fGridView.fHLRegion;
- SetEmptyRgn(fThisSelection);
- fDifference := MakeNewRgn;
- Success(fi);{ƒƒƒ}
- END;
-
- Please correct me if I'm incorrect.
-
- Larry Goldman
-
-